home *** CD-ROM | disk | FTP | other *** search
/ Your Web Site Creator / Your Web Site Creator.iso / WebSite / data1.cab / Program_Executable_Files / scripts / ACTS.dat next >
Encoding:
Text File  |  1999-01-13  |  14.2 KB  |  433 lines

  1. ;ACTS.DAT     Personal & Family Activities
  2. [GetNewActivityData]
  3. IF pastimeVarRoot = ""
  4.   SETTEMP wizPic = "wizpics\wizactv.gif"
  5. ELSE
  6.   SETTEMP wizPic = "wizpics\wizpactv.gif"
  7. ENDIF
  8.  
  9. IF skipExplanations = NN
  10.   SETTEMP wlc_pt1 = "\n\nNow that you have completed the "
  11.   IF pers_fam_mode = "personal"
  12.     SETTEMP ptPart1 = "PERSONAL ACTIVITIES for ",name
  13.     SETTEMP cap1 = "you enjoy"
  14.   ELSE
  15.     SETTEMP ptPart1 = " FAMILY ACTIVITIES - ",familyLastName," Family"
  16.     SETTEMP cap1 = "the family members enjoy"
  17.   ENDIF
  18.   SETTEMP ptStrtext = ptPart1,wlc_pt1,pers_fam_mod," pastimes section, you are ready to enter the ",pers_fam_mode," activities section.  Here you can share information about the activities that  "
  19.   SETTEMP ptStrtext = ptStrtext,cap1
  20.   SETTEMP ptStrtext = ptStrtext,".\n\nThis section will contain four activity items.\n\nThe four items are chosen from a category, such as 'Clubs', 'Hobbies', and so on.  The category helps the wizard provide the proper page decorations and ask the right questions.\n\nYou can change these later by modifying what you wrote or by simply replacing an entire item."
  21.  
  22.   BACKSTOP
  23.   PAGE
  24.   TYPE DESCRIPTION
  25.   WIZPIC_RE wizPic
  26.   DESCRIPTION_RE ptStrtext
  27. ENDIF
  28.  
  29. GOSUB InitActsVars
  30.  
  31. SETTEMP base = pastimeVarRoot,"actType"
  32. SET eval( base,1 ) = "Team Sports"
  33. SET eval( base,2 ) = "Hobby"
  34. SET eval( base,3 ) = "Club"
  35. SET eval( base,4 ) = "Volunteer"
  36.  
  37. SETTEMP txt1nA = "ADD AN ACTIVITY.   You are now entering the "
  38. SETTEMP txt1nB = " of four ",pers_fam_mode," activity items."
  39. GOSUB SetACPromptVars
  40.  
  41. SETTEMP passageVar = "nActivity"
  42. SETTEMP lastPassage = 0
  43.  
  44. BACKSTOP Activ1
  45. SETTEMP nActivity = 1
  46. GOSUB AdvancePassage
  47. SETTEMP nNumber = nActivity
  48. GOSUB Ordinal
  49. SETTEMP ptPrmptext = txt1nA,ordinal,txt1nB,txt1n,pers_fam_mode,txt2n,acSeltext,"add."
  50. GOSUB GetActivityData
  51. SETBACKSTOP Activ1
  52.  
  53. BACKSTOP Activ2
  54. SETTEMP nActivity = 2
  55. GOSUB AdvancePassage
  56. SETTEMP nNumber = nActivity
  57. GOSUB Ordinal
  58. SETTEMP ptPrmptext = txt1nA,ordinal,txt1nB,txt1n,pers_fam_mode,txt2n,acSeltext,"add."
  59. GOSUB GetActivityData
  60. SETBACKSTOP Activ2
  61.  
  62. BACKSTOP Activ3
  63. SETTEMP nActivity = 3
  64. GOSUB AdvancePassage
  65. SETTEMP nNumber = nActivity
  66. GOSUB Ordinal
  67. SETTEMP ptPrmptext = txt1nA,ordinal,txt1nB,txt1n,pers_fam_mode,txt2n,acSeltext,"add."
  68. GOSUB GetActivityData
  69. SETBACKSTOP Activ3
  70.  
  71. BACKSTOP Activ4
  72. SETTEMP nActivity = 4
  73. GOSUB AdvancePassage
  74. SETTEMP nNumber = nActivity
  75. GOSUB Ordinal
  76. SETTEMP ptPrmptext = txt1nA,ordinal,txt1nB,txt1n,pers_fam_mode,txt2n,acSeltext,"add."
  77. GOSUB GetActivityData
  78. SETBACKSTOP Activ4
  79.  
  80.  
  81.  
  82. ;xxxxxxxxxxxxxxxxxx REPLACE AN ACTIVITY xxxxxxxxxxxxxxxxxxxxxxx
  83. [ReplaceActivityData]
  84. IF pastimeVarRoot = ""
  85.   SETTEMP wizPic = "wizpics\wizactv.gif"
  86. ELSE
  87.   SETTEMP wizPic = "wizpics\wizpactv.gif"
  88. ENDIF
  89.  
  90. IF beenOnce <> 1
  91.   SETTEMP inpL2 = 1
  92. ENDIF
  93.  
  94. SETTEMP base = pastimeVarRoot,"actLinkText"
  95. SETTEMP actslinkTextVar1 = base,"1"
  96. SETTEMP actslinkTextVar2 = base,"2"
  97. SETTEMP actslinkTextVar3 = base,"3"
  98. SETTEMP actslinkTextVar4 = base,"4"
  99.  
  100. SETTEMP txt1nA = "REPLACE AN ACTIVITY.   You are now changing the "
  101. SETTEMP txt1nB = " activity item.  If you choose the same type as before, you can make changes to what you wrote before.  If you choose a new type, you can enter new information to replace the old activity completely."
  102. GOSUB SetACPromptVars
  103.  
  104.  
  105. BACKSTOP LastActv
  106. PAGE
  107. WIZPIC_RE wizPic
  108. TYPE RADIOBUTTONS
  109. NAME inpL2
  110. DESCRIPTION_RE "PICK ONE TO REPLACE\nYou can replace one or more of the '",pers_fam_mode," activities' that you have previously entered.  You need not keep to the same types of activities you have already, but rather you can enter them in any combination.\n\nSelect one of these to replace."
  111. ARGUMENT "&1. ",eval( actslinkTextVar1 )@1
  112. ARGUMENT "&2. ",eval( actslinkTextVar2 )@2
  113. ARGUMENT "&3. ",eval( actslinkTextVar3 )@3
  114. ARGUMENT "&4. ",eval( actslinkTextVar4 )@4
  115. ARGUMENT "&Done changing the activities."@5
  116. NOPREVIOUS
  117.  
  118. IF inpL2 <> 5
  119.     ; get data for activity to replace
  120.   SETTEMP nActivity = inpL2
  121.   BACKSTOP
  122.   SETTEMP nNumber = nActivity
  123.   GOSUB Ordinal
  124.   SETTEMP ptPrmptext = txt1nA,ordinal,txt1nB,txt1n,pers_fam_mode,txt2n,acSeltext,"use for this activity item."
  125.   GOSUB GetActivityData
  126.   SETBACKSTOP LastActv
  127.  
  128.   IF pastimeVarRoot = ""
  129.     SETTEMP PastimesBuild = YY
  130.   ELSE
  131.     SETTEMP doBuild = YY
  132.   ENDIF
  133.  
  134.   SETTEMP inpL2 = 5
  135.   SETTEMP beenOnce = 1
  136.   GOTO ReplaceActivityData     ; do another
  137. ENDIF
  138. SETTEMP beenOnce = 0
  139.  
  140.  
  141. ;xxxxxxxxxxxxxxxxxxxx INPUT AN ACTIVITY xxxxxxxxxxxxxxxxxxx
  142. [GetActivityData]
  143. GOSUB SetActVars
  144.  
  145. ;SETTEMP activity1 = "Team Sports"
  146. ;SETTEMP activity2 = "Hobby"
  147. ;SETTEMP activity3 = "Club"
  148. ;SETTEMP activity4 = "Volunteer"
  149. ;SETTEMP activity5 = "Personal Sports"
  150.  
  151. SETTEMP ac_club = "A Club"
  152. SETTEMP ac_hobby = "A Hobby"
  153. SETTEMP ac_sport = "A Sport"
  154. SETTEMP ac_vol = "Volunteer Work"
  155. SETTEMP ac_team = "Team Sports"
  156.  
  157. SETTEMP oldActType = actType
  158.  
  159. ; get activity type
  160. PAGE
  161. NAME actType
  162. TYPE RADIOBUTTONSWITHTEXT
  163. WIZPIC_RE wizPic
  164. DESCRIPTION_RE ptPrmptext
  165. ARGUMENT "&Team Sports"@Team Sports@"\nUse this category for team sports that you play.\n\nTell everyone how you enjoy playing for this team, and how the team is doing."
  166. ARGUMENT "&Hobby"@Hobby@"\nWho doesn't have at least one hobby?\n\nUse this category to describe a hobby of any type."
  167. ARGUMENT "&Club"@Club@"\nUse this category to tell about a club or an organization that you participate in.\n\nLet the rest of the family know why you enjoy it."
  168. ARGUMENT "&Volunteer"@Volunteer@"\nUse this category to tell about a volunteer activity that you participate in.\n\nLet others know how you give of yourself."
  169. ARGUMENT "P&ersonal Sports"@Personal Sports@"\nUse this category for personal sports, such as body-building, skiing, or if you are an avid golfer or bowler.\n\nTell the whole family about the sports that you like to participate in."
  170.  
  171. IF actType <> oldActType
  172.   SETTEMP actTextA = ""
  173.   SETTEMP actTextB = ""
  174.   SETTEMP actTextC = ""
  175.   SETTEMP actTextD = ""
  176.   SETTEMP actTextE = ""
  177.   SETTEMP actTextF = ""
  178. ENDIF
  179.  
  180. IF pers_fam_mode = "personal" && actTextC = ""
  181.   SETTEMP actTextC = name
  182. ENDIF
  183.  
  184.  
  185. BACKSTOP
  186.  
  187. IF actType = "Team Sports"
  188.  GOSUB GetTeamSportData
  189. ENDIF
  190.  
  191. IF actType = "Club"
  192.  GOSUB GetClubData
  193. ENDIF
  194.  
  195. IF actType = "Hobby"
  196.  GOSUB GetHobbyData
  197. ENDIF
  198.  
  199. IF actType = "Personal Sports"
  200.  GOSUB GetPersonalSportData
  201. ENDIF
  202.  
  203. IF actType = "Volunteer"
  204.  GOSUB GetVolunteerData
  205. ENDIF
  206.  
  207. SET eval( actLinkTextVar ) = actLinkText
  208. SET eval( actTypeVar ) = actType
  209. SET eval( actTextAVar ) = actTextA
  210. SET eval( actTextBVar ) = actTextB
  211. SET eval( actTextCVar ) = actTextC
  212. SET eval( actTextDVar ) = actTextD
  213. SET eval( actTextEVar ) = actTextE
  214. SET eval( actTextFVar ) = actTextF
  215.  
  216.  
  217.  
  218. [GetClubData]    ;xxxxxxxxxxx CLUB xxxxxxxxxx
  219. PAGE
  220. TYPE MULTIPLEEDITS
  221. WIZPIC_RE wizPic
  222. DESCRIPTION_RE "Enter the name of the club, the type of club, and who belongs to the club.\n\nFor the club name, put its formal name.  For the type, provide a general category such as civic, extra-curricular, competition, fun, and so on.  List any family members who are members of this club."
  223. ARGUMENT Name of the &club:@actTextA
  224. ARGUMENT Typ&e of club:@actTextB
  225. ARGUMENT &Family members who belong:@actTextC
  226.  
  227. IF actTextA = "" || actTextA = ac_club
  228.  SET actTextA = ac_club
  229.  SET actLinkText = ac_club
  230. ELSE
  231.  SET actLinkText = ac_club,": ",actTextA
  232. ENDIF
  233.  
  234. BACKSTOP
  235. PAGE
  236. TYPE MULTIAND2EDITS
  237. DESCRIPTION_RE "How long have you been a member of this club?  Write out the month and year.  Put your answer in the box below.  Also tell how many other members there are in the club.  Share other info about the club.  Talk about the club, why you like belonging, who else is in the club, and a brief description of what the club is about and how you participate."
  238. WIZPIC_RE wizPic
  239. ARGUMENT &Member since:@actTextD
  240. ARGUMENT &How many members:@actTextE
  241. ARGUMENT &About the club:@actTextF
  242.  
  243.  
  244.  
  245. [GetHobbyData]    ;xxxxxxxxxxx HOBBY xxxxxxxxxx
  246. SETTEMP hob_p1 = "Fill in a name for the hobby (for example `Rare Stamps' or `Model Trains') and the type of hobby (collecting, building, etc.).  Also enter the names of the family members who enjoy this hobby."
  247. SETTEMP hob_p2 = "Fill in below how often you get to spend time on this hobby, how long you have been active with this hobby (for example, `for ten years' or `since 1983'), and a brief description of what you do and how you enjoy it."
  248. ;
  249. PAGE
  250. TYPE MULTIPLEEDITS
  251. WIZPIC_RE wizPic
  252. DESCRIPTION_RE hob_p1
  253. ARGUMENT Name of the &hobby:@actTextA
  254. ARGUMENT Typ&e of hobby:@actTextB
  255. ARGUMENT &Family members who enjoy hobby:@actTextC
  256.  
  257. IF actTextA = "" || actTextA = ac_hobby
  258.  SET actTextA = ac_hobby
  259.  SET actLinkText = ac_hobby
  260. ELSE
  261.  SET actLinkText = ac_hobby,": ",actTextA
  262. ENDIF
  263.  
  264. BACKSTOP
  265. PAGE
  266. TYPE MULTIAND2EDITS
  267. WIZPIC_RE wizPic
  268. DESCRIPTION_RE hob_p2
  269. ARGUMENT &How often:@actTextD
  270. ARGUMENT &Experience:@actTextE
  271. ARGUMENT &About my hobby:@actTextF
  272.  
  273.  
  274. [GetTeamSportData]    ;xxxxxxxxxxx TEAM SPORTS xxxxxxxxxx
  275. SETTEMP psp_p1 = "Fill in the name of the team sport you play and the name of your team.\n\nAlso, fill in names of the family members who play on this team."
  276. SETTEMP psp_p2 = "Fill in more details about you and the team.  What position do you play for the team?  How is the team doing so far this season?  What's the won/lost record?\n\nTell all about the team.  How is the team doing?  How are you doing and what are the team's chances?  Add anything else you would like to share about the team."
  277.  
  278. PAGE
  279. TYPE MULTIPLEEDITS
  280. WIZPIC wizpics\golfwiz.gif
  281. DESCRIPTION_RE psp_p1
  282. ARGUMENT Type of &sport:@actTextA
  283. ARGUMENT Name of the &team:@actTextB
  284. ARGUMENT &Family members who participate:@actTextC
  285.  
  286. IF actTextA = "" || actTextA = ac_sport
  287.  SET actTextA = ac_sport
  288.  SET actLinkText = ac_sport
  289. ELSE
  290.  SET actLinkText = ac_sport,": ",actTextA
  291. ENDIF
  292.  
  293. BACKSTOP
  294. PAGE
  295. TYPE MULTIAND2EDITS
  296. WIZPIC wizpics\golfwiz.gif
  297. DESCRIPTION_RE psp_p2
  298. ARGUMENT Po&sition played:@actTextD
  299. ARGUMENT &Team record:@actTextE
  300. ARGUMENT &About the team:@actTextF
  301.  
  302.  
  303. [GetPersonalSportData]    ;xxxxxxxxxxx PERSONAL SPORTS xxxxxxxxxx
  304. SETTEMP psp_p1 = "Fill in the name of the sport you participate in and the type of sport (varsity, junior league, amateur, professional, etc.).  Fill in the names of the family members who participate in this sport."
  305. SETTEMP psp_p2 = "How often do you participate in this sport and how do you find it rewarding?  Also provide a brief description of your involvement in the sport (I play center field, I am the goalie, etc.).  Also tell how you enjoy your participation."
  306.  
  307. PAGE
  308. TYPE MULTIPLEEDITS
  309. WIZPIC wizpics\golfwiz.gif
  310. DESCRIPTION_RE psp_p1
  311. ARGUMENT Name of the &sport:@actTextA
  312. ARGUMENT Typ&e of sport:@actTextB
  313. ARGUMENT &Family members who participate:@actTextC
  314.  
  315. IF actTextA = "" || actTextA = ac_sport
  316.  SET actTextA = ac_sport
  317.  SET actLinkText = ac_sport
  318. ELSE
  319.  SET actLinkText = ac_sport,": ",actTextA
  320. ENDIF
  321.  
  322. BACKSTOP
  323. PAGE
  324. TYPE MULTIAND2EDITS
  325. WIZPIC wizpics\golfwiz.gif
  326. DESCRIPTION_RE psp_p2
  327. ARGUMENT &Frequency of participation:@actTextD
  328. ARGUMENT &How we enjoy it:@actTextE
  329. ARGUMENT &Description of sport:@actTextF
  330.  
  331.  
  332.  
  333. [GetVolunteerData]    ;xxxxxxxxxxx VOLUNTEER xxxxxxxxxx
  334. SETTEMP vol_p1 = "Fill in the name of the volunteer organization that you participate in (for example, `Red Cross' or `March of Dimes') and the type of volunteer work (for example, `Fund Raising' or `Member Drive' or `Helping Less Fortunate').  Fill in the names of family members who volunteer their time for this."
  335. SETTEMP vol_p2 = "How often do you do this volunteer work?  How do you find it rewarding?  Provide a short description of the volunteer work that you do.  Fill all of this in the spaces provided."
  336.  
  337. PAGE
  338. TYPE MULTIPLEEDITS
  339. WIZPIC_RE wizPic
  340. DESCRIPTION_RE vol_p1
  341. ARGUMENT Name of the &volunteer work:@actTextA
  342. ARGUMENT Typ&e of volunteer:@actTextB
  343. ARGUMENT &Family members who volunteer:@actTextC
  344.  
  345. IF actTextA = "" || actTextA = ac_vol
  346.  SET actTextA = ac_vol
  347.  SET actLinkText = ac_vol
  348. ELSE
  349.  SET actLinkText = ac_vol,": ",actTextA
  350. ENDIF
  351.  
  352. BACKSTOP
  353. PAGE
  354. TYPE MULTIAND2EDITS
  355. WIZPIC_RE wizPic
  356. DESCRIPTION_RE vol_p2
  357. ARGUMENT &Frequency of volunteering:@actTextD
  358. ARGUMENT &What you get out of it:@actTextE
  359. ARGUMENT &Description of volunteer work:@actTextF
  360.  
  361.  
  362. ;xxxxxxxxxxxxxxxxxxxxx BUILD PAGES xxxxxxxxxxxxxxxxxxxxx
  363. [BuildAnActivityPage]
  364. GOSUB SetActVars
  365. SETTEMP template_use = "Activity - ",actType
  366. SETTEMP pageName = "##Activity",nActivity,activityPageVar
  367. IF pers_fam_mode = "personal"
  368.   SETTEMP temp_placard = "clip_art\signs\persactv.gif"
  369. ELSE
  370.   SETTEMP temp_placard = "clip_art\signs\activity.gif"
  371. ENDIF
  372. SETTYPE temp_placard = picture
  373.  
  374. SETPARENTTOPIC eval( pageNameVar )
  375.  
  376. BUILDTOPIC pageName
  377. REPLACE eval( activityPageVar )
  378. template_use ;templ
  379. none         ;backdrop
  380. 1            ;level
  381. 0            ;# links
  382. 7            ;# fields
  383. actTextA
  384. actTextB
  385. actTextC
  386. actTextD
  387. actTextE
  388. actTextF
  389. temp_placard
  390.  
  391. SET eval( activityPageVar ) = topicfromsymbolic( pageName )
  392.  
  393.  
  394. [InitActsVars]
  395. SETTEMP nActivity = ""
  396. SETTEMP actType = ""
  397. SETTEMP actTextA = ""
  398. SETTEMP actTextB = ""
  399. SETTEMP actTextC = ""
  400. SETTEMP actTextD = ""
  401. SETTEMP actTextE = ""
  402. SETTEMP actTextF = ""
  403.  
  404.  
  405. [SetActVars]
  406. SETTEMP actLinkTextVar = pastimeVarRoot,"actLinkText",nActivity
  407. SETTEMP actTypeVar    = pastimeVarRoot,"actType",nActivity
  408. SETTEMP activityPageVar = pastimeVarRoot,"actsPage",nActivity
  409.  
  410. SETTEMP base = pastimeVarRoot,"actText"
  411. SETTEMP actTextAVar = base,"A",nActivity
  412. SETTEMP actTextBVar = base,"B",nActivity
  413. SETTEMP actTextCVar = base,"C",nActivity
  414. SETTEMP actTextDVar = base,"D",nActivity
  415. SETTEMP actTextEVar = base,"E",nActivity
  416. SETTEMP actTextFVar = base,"F",nActivity
  417.  
  418. SETTEMP actLinkText = eval( actLinkTextVar )
  419. SETTEMP actType = eval( actTypeVar )
  420. SETTEMP actTextA = eval( actTextAVar )
  421. SETTEMP actTextB = eval( actTextBVar )
  422. SETTEMP actTextC = eval( actTextCVar )
  423. SETTEMP actTextD = eval( actTextDVar )
  424. SETTEMP actTextE = eval( actTextEVar )
  425. SETTEMP actTextF = eval( actTextFVar )
  426. SETTEMP activityPage = eval( activityPageVar )
  427.  
  428.  
  429. [SetACPromptVars]
  430. SETTEMP txt1n = "\n\nSelect the category for this "
  431. SETTEMP txt2n = " activity.  The type you choose is used to determine how this item's page on the Web site is styled.  It also governs what questions you will be asked to complete this item."
  432. SETTEMP acSeltext = "\n\nSelect one of the types of activities listed below to "
  433.